/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const orderRouter = {
  path: '/orders',
  component: Layout,
  redirect: '/orders/channel',
  name: 'Orders',
  meta: {
    title: 'Orders',
    icon: 'table'
  },
  children: [
    {
      path: 'channel',
      component: () => import('@/views/orders/channel'),
      name: 'channelList',
      meta: { title: 'channelList' }
    },
    {
      path: 'channel/detail',
      component: () => import('@/views/orders/channel/detail'),
      name: 'channelDetail',
      meta: { title: 'channelDetail' },
      hidden: true
    },
    {
      path: 'channel/price',
      component: () => import('@/views/orders/channel/price'),
      name: 'channelPrice',
      meta: { title: 'channelPrice' },
      hidden: true
    },
    {
      path: 'door',
      component: () => import('@/views/orders/door'),
      name: 'doorList',
      meta: { title: 'doorList' }
    },
    {
      path: 'test',
      component: () => import('@/views/orders/channel/test'),
      name: 'test',
      meta: { title: 'test' }
    },
    {
      path: 'test2',
      component: () => import('@/views/orders/provide'),
      name: 'provideTest',
      meta: { title: 'provideTest' }
    },
    {
      path: '表单例子',
      component: () => import('@/views/orders/form'),
      name: 'formTest',
      meta: { title: 'formTest' }
    }
  ]
}
export default orderRouter
